package xyz.xiaomuyu.moment_read_app.Fragment;


import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import xyz.xiaomuyu.moment_read_app.R;
import xyz.xiaomuyu.moment_read_app.activity.Music;
import xyz.xiaomuyu.moment_read_app.activity.Read;
import xyz.xiaomuyu.moment_read_app.yinyue.yinyue1;

public class HomePageFragment_yinyue extends Fragment{
    private static final String ARG_PARAM2 = "param2";
    private String mParam1;
    private TextView textView;

    public static HomePageFragment_yinyue newInstance(String param2) {
        HomePageFragment_yinyue fragment = new HomePageFragment_yinyue();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM2);
        }

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_home_page_yinyue, container, false);

        LinearLayout a = rootView.findViewById(R.id.tab011);
        a.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(),  yinyue1.class);
                startActivity(it);
            }
        });



        LinearLayout b = rootView.findViewById(R.id.tab3);
        b.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(),  Music.class);
                startActivity(it);
            }
        });


        return rootView;
    }
}